<div class="arosAcos index">
	<h2><?php echo __d('aros','Set Raight');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<th width="20%"><?php echo __d('aros','User type',true);?></th>
		<th width="30%"><?php echo __d('aros','Event',true);?></th>			
		<th><?php echo __d('aros','Action',true);?></th>
		<th><?php echo __d('aros','Access',true);?></th>
		<th class="actions"><?php echo $this->Html->link('+ Action', array('controller'=>'acos','action'=>'add'));?></th>
	</tr>
	<tr >
		<?php echo $this->Form->create('Aco',array('url'=>array('controller'=>'acos', 'actoions'=>'index'),'name'=>'_aco_set_new_'));?>		
		<td><?php echo $this->Form->input('group_id',array('options'=>$groups,'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td><?php echo $this->Form->input('aco_id',array('options'=>$acos,'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td><?php echo $this->Form->input('action_id',array('options'=>$actions,'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td><?php echo $this->Form->input('access',array('options'=>array('1'=>__d('aros','Allow',true),'0'=>__d('aros','Deny',true)),'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td class="actions">
			<?php echo $this->Html->link(__d('aros','Submit'), '#',array('onclick'=>'if (confirm("'.__d('aros',"Are you sure you want to change right for this?",true).'")) { document._aco_set_new_.submit(); } event.returnValue = false; return false;')); ?>
		</td>
		<?php echo $this->Form->end();?>
	</tr>
	</table>
	
	<h2><?php echo __d('aros','Defined Raights');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<th width="20%"><?php echo $this->Paginator->sort('aro_id',__d('aros','User Type',true));?></th>
		<th width="30%"><?php echo $this->Paginator->sort('aco_id',__d('aros','Event',true));?></th>
		<th><?php echo $this->Paginator->sort('_create');?></th>
		<th><?php echo $this->Paginator->sort('_read');?></th>
		<th><?php echo $this->Paginator->sort('_update');?></th>
		<th><?php echo $this->Paginator->sort('_delete');?></th>
		<th class="actions"><?php echo __d('aros','Actions');?></th>
	</tr>
	<?php
	foreach ($arosAcos as $arosAco): ?>
	<tr>
		<td>
			<?php echo $this->Html->link($arosAco['Aro']['alias'], array('controller' => 'groups', 'action' => 'view', $arosAco['Aro']['foreign_key'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($arosAco['Aco']['path'], array('controller' => 'acos', 'action' => 'view', $arosAco['Aco']['id'])); ?>
		</td>
		<td><?php echo $this->Form->checkbox(null,array('checked'=>(($arosAco['ArosAco']['_create'] == 1)?true:false),'disabled'=>'disabled')); ?>&nbsp;</td>
		<td><?php echo $this->Form->checkbox(null,array('checked'=>(($arosAco['ArosAco']['_read'] == 1)?true:false),'disabled'=>'disabled')); ?>&nbsp;</td>
		<td><?php echo $this->Form->checkbox(null,array('checked'=>(($arosAco['ArosAco']['_update'] == 1)?true:false),'disabled'=>'disabled')); ?>&nbsp;</td>
		<td><?php echo $this->Form->checkbox(null,array('checked'=>(($arosAco['ArosAco']['_delete'] == 1)?true:false),'disabled'=>'disabled')); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__d('aros','View'), array('action' => 'view', $arosAco['ArosAco']['id'])); ?>
			<?php echo $this->Html->link(__d('aros','Edit'), array('action' => 'edit', $arosAco['ArosAco']['id'])); ?>
			<?php echo $this->Form->postLink(__d('aros','Delete'), array('action' => 'delete', $arosAco['ArosAco']['id']), null, __d('aros','Are you sure you want to delete # %s?', $arosAco['ArosAco']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __d('aros','Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __d('aros','previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__d('aros','next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<?php echo $this->element('/menu/left')?>
